<template>
	<view class="out-box">
		<view class="hader">
			<view class="hader_top">每天查看次数已达上限</view>
			<view class="hader_cneter">普通用户每天可查看发布信息及电话最多3次，请购买套餐后增加查看上限，活动更多权限</view>
			<view class="hader_cneter">VIP用户每天可查看发布信息及电话最多10次，请明天继续查看</view>
			<view class="hader_bottom" @tap="topay()">购买套餐</view>
		</view>
		<view class="main">
			<view class="buttomtwo" @tap="iknow()">我知道了</view>
		</view>
	</view>
</template>

<script setup>
import {ref,reactive,onBeforeMount,onMounted} from 'vue'
import {onGotApiData} from '../../util/api.js'
	const props = defineProps({
		obj: String,
	});
	console.log("sadasd",props.obj)

	// 在组件渲染之前执行
	onBeforeMount(() => {
		console.log('组件准备渲染',);
	})
	// 在组件渲染完成后执行
	onMounted(() => {
		console.log('组件已经渲染完毕',);
	});


	// 我知道了跳转上两级
	const iknow = () => {
		uni.navigateBack({
			delta: 2
		});
	}

	// 购买套餐
	const topay = () => {
		uni.redirectTo({
			url: '/pages/payvip/payvip'
		});
	}

</script>

<style lang="scss" scoped>
	.out-box {
		min-height: 100vh;
		width: 100vw;
		max-width: 750rpx;
		margin: 0 auto;
		overflow: hidden;
		font-family: '思源黑体';
		background-color: rgba(166, 166, 166, 1);
		width: 750rpx auto;
		.hader{
			width: 680rpx;
			height: 600rpx;
			margin:  0 auto;
			margin-top: 200rpx;
			background-color: rgba(255, 255, 255, 1);
			border-radius: 20rpx;
			// border: 1px solid black;
			font-family: '思源黑体';
			.hader_top{
				width: 680rpx;
				height: 84rpx;
				font-size: 36rpx;
				font-weight: 700;
				line-height: 84rpx;
				color: rgba(46, 46, 46, 1);
				text-align:center;
			}
			.hader_cneter{
				width: 620rpx;
				padding: 0 30rpx 0 30rpx;
				margin-top: 60rpx;
				font-size: 28rpx;
				font-weight: 400;
				line-height:40rpx;
				color: rgba(46, 46, 46, 1);
				text-align: left;
			}
			.hader_bottom{
				width: 500rpx;
				height: 80rpx;
				margin: 0 auto;
				margin-top: 140rpx;
				border-radius: 6px;
				background: rgba(255, 87, 51, 1);
				line-height: 80rpx;
				color: rgba(255, 255, 255, 1);
				text-align: center;
				font-size: 36rpx;
			}
		}
		.main{
			width: 750rpx;
			height: 180rpx;
			margin:  0 auto;
			// background-color: pink;
			font-family: '思源黑体';
			color:rgba(0, 0, 0, 1);
			.buttomtwo{
				width: 500rpx;
				height: 80rpx;
				margin: 0 auto;
				margin-top: 40rpx;
				border-radius: 6px;
				background: rgba(255, 87, 51, 1);
				line-height: 80rpx;
				color: rgba(255, 255, 255, 1);
				text-align: center;
				font-size: 36rpx;
			}	
		}
	}
</style>
